package com.masterrabbit.gmh.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("reviews")
public class Reviews {
/*    review_id INT AUTO_INCREMENT PRIMARY KEY COMMENT 'ID（自增）',
    order_number VARCHAR(36) COMMENT '订单编号（UUID）',
    rating INT COMMENT '评分',
    image_id INT COMMENT '图片id（图片表外键）',
    created_at DATETIME COMMENT '创建时间',
    content TEXT COMMENT '内容'
* */
    @TableId
    private Integer reviewId;
    private String orderNumber;
    private Integer rating;
    private Integer imageId;
    private String content;
    private String createdAt;
    private Integer userId;
    private Integer userMerchantId;
    @TableField(exist = false)
    private List<String> imgUrls;
}
